<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-yx_register_form-form',
	'enableAjaxValidation'=>false,
	'enableClientValidation'=>true,
	'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php //echo $form->errorSummary($model); ?>
	
	<?php $rangeYear = ApplicationConfig::app()->params['scaling_params']['yearOfPassing']; ?>

	<div class="row">
		<?php echo $form->labelEx($model,'first_name'); ?>
		<?php echo CHtml::textField('first_name',$userList->first_name,array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'first_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'last_name'); ?>
		<?php echo CHtml::textField('last_name',$userList->last_name,array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'last_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_name'); ?>
		<?php echo CHtml::textField('user_name',$userList->user_name,array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'user_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'emailID'); ?>
		<?php echo CHtml::textField('emailID',$userList->emailID,array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'emailID'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'address'); ?>
		<?php echo CHtml::textField('address',$userList->address); ?>
		<?php echo $form->error($model,'address'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'profile_image'); ?>
		<?php echo $form->fileField($model,'profile_image'); 
		?>
		<br />
		<img src="<?php echo ApplicationConfig::getImageUrl('PROFILE-IMAGES', array('file_name'=>$userList->profile_image));?>" height="80px" width="80px"/>
		<?php echo $form->error($model,'profile_image'); ?>
	</div>
		
	<div class="row">
		<?php echo $form->labelEx($model,'college_id_image'); ?>
		<?php echo $form->fileField($model,'college_id_image'); ?>
		<br />
		<img src="<?php echo ApplicationConfig::getImageUrl('COLLEGE-ID-IMAGES', array('file_name'=>$userList->college_id_image));?>" height="80px" width="80px"/>
		<?php echo $form->error($model,'college_id_image'); ?>
	</div>
	
	<?php $this->widget('CCaptcha'); ?>
            <div class="captcha"><?php echo CHtml::activeTextField( $model,'verifyCode', array('class'=>'captcha')); ?></div>
    <?php echo $form->error($model,'verifyCode'); ?>
	
	<div class="row" id="check">
		<?php echo $form->labelEx($model,'iAgree'); ?>
		<?php echo $form->checkBoxList($model,'iAgree', array('seperator' => '')); ?>
		<?php echo $form->error($model,'iAgree'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->